package com.gss.security.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name="ARMORY_USER_ROLE_MAPPING")
public class UserRoleMappingDTO implements Serializable {

	private String roleId;
	private String userId;
	private String[] roles;
	
	@Id
	@Column(name="URM_ROLE_ID")
	public String getRoleId() {
		return roleId;
	}
	@Id
	@Column(name="URM_USER_ID")
	public String getUserId() {
		return userId;
	}
	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Transient
	public String[] getRoles() {
		return roles;
	}
	public void setRoles(String[] roles) {
		this.roles = roles;
	}
	
}
